package com.ydcode.utils;

import java.lang.reflect.Method;

/**
 * 属性信息
 * 
 * @author YUPENG.LI
 * @version 1.0.0.0
 */
@SuppressWarnings("rawtypes")
public class Prototype {
	/**
	 * 属性名称
	 */
	private String name;

	/**
	 * 数据类型
	 */
	private Class type;

	/**
	 * 赋值函数
	 */
	private Method setMethod;

	/**
	 * 获取值函数
	 */
	private Method getMethod;

	public Prototype() {
	}

	public Prototype(String name, Class type) {
		super();
		this.name = name;
		this.type = type;
	}

	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}

	/**
	 * @param name
	 *            the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}

	/**
	 * @return the type
	 */
	public Class getType() {
		return type;
	}

	/**
	 * @param type
	 *            the type to set
	 */
	public void setType(Class type) {
		this.type = type;
	}

	/**
	 * @return the setMethod
	 */
	public Method getSetMethod() {
		return setMethod;
	}

	/**
	 * @param setMethod
	 *            the setMethod to set
	 */
	public void setSetMethod(Method setMethod) {
		this.setMethod = setMethod;
	}

	public Method getGetMethod() {
		return getMethod;
	}

	public void setGetMethod(Method getMethod) {
		this.getMethod = getMethod;
	}
}
